package com.dreamchaser.familydevice.shiro.token;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * @Author
 * @Description JWT token
 */
public class JwtToken implements AuthenticationToken {

    private static final long serialVersionUID = -5391241767768700298L;

    private String ipHost;        //用户的IP
    private String jwt;           //json web token值

    public JwtToken(String ipHost, String jwt) {
        this.ipHost = ipHost;
        this.jwt = jwt;
    }

    public Object getPrincipal() {
        return this.jwt;
    }

    public Object getCredentials() {
        return this.jwt;
    }

    public String getIpHost() {
        return ipHost;
    }

    public void setIpHost(String ipHost) {
        this.ipHost = ipHost;
    }



    public String getJwt() {
        return jwt;
    }

    public void setJwt(String jwt) {
        this.jwt = jwt;
    }


}
